package apl;


import java.awt.Toolkit;

import javax.swing.JFrame;
import javax.swing.JPanel;

import view.Totaalscherm;

import model.CiiBay;

@SuppressWarnings("serial")
public class Apl extends JFrame {
	private JPanel totaalscherm;
	private CiiBay cb;
	
	public static final int WIDTH = 800;
	public static final int HEIGHT = 850;
	
	/**
	* Deze methode start het programma op.
	* @author Yasper
	* @since V1.0
	*/
	public Apl() {
		cb = new CiiBay();
		totaalscherm = new Totaalscherm(cb);
		this.setContentPane(totaalscherm);
	}

	public static void main(String args[]) {
        JFrame frame = new Apl();

        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        //frame.setSize(800, 850);
        frame.setTitle("CiiBay");
        frame.setVisible(true);
        frame.setResizable(false);
		frame.setBounds((int)((Toolkit.getDefaultToolkit().getScreenSize().getWidth()-WIDTH)/2),(int)((Toolkit.getDefaultToolkit().getScreenSize().getHeight()-HEIGHT+75)/2),WIDTH,HEIGHT-120);

    }
}
